<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/welcome', function () {
    return view('welcome');
});
Route::any('/we', function () {
    echo urldecode('ss://YWVzLTI1Ni1nY206YXJsb29yLmNvbQ==@dc6.ddnspod.xyz:8100/?#%E6%90%AC%E7%93%A6%E5%B7%A5DC6');
    return md5('HpYnFc');

    $content='【一支秀网络】您好，尊敬的客户，欢迎关注乐步公众号!';
    $extno= '10690937';
    $phone= '13760766246';

    $url='http://39.105.26.145:7862/sms?action=send';
    $client=new \GuzzleHttp\Client();
    /*$rs=$client->request('post',$url,[
        'form_params' => [
            'account' => '923095',
            'password' => md5('HpYnFc'.$extno.$content.$phone),
            'mobile' => $phone,
            'content' =>$content,
            'extno' => $extno,
            'rt' => 'json',
        ]
    ]);*/

    return md5('HpYnFc'.$extno.$content.$phone);


    $rs=$client->request('post','http://39.105.26.145:7862/sms?action=mo',[
        'form_params' => [
            'account' => '923095',
            'password' => md5('ZQ8zZT'),
            'size' => 10,
            'rt' => 'json',
        ]
    ]);
    dd($rs->getBody());
   // return md5('HpYnFc'.'10690937'.'this is test'.'13760766246');
});

Auth::routes();

Route::get('/', 'HomeController@index')->name('home');
Route::get('/post/{id}', 'HomeController@post')->name('post');
Route::get('/category/{id}', 'HomeController@category')->name('category');
Route::get('post', 'HomeController@category')->name('posts');
Route::get('{slug}', 'HomeController@show')->name('show');
Route::get('/page/{id}', 'HomeController@page')->name('page');

Route::get('/sky', function () {
    return request()->all();
});
Route::get('/sky2', function () {
    return frontend('default.home');
});

Route::any('/test2', function () {
   return md5('ZQ8zZT'.'10690937'.'this is test'.'13760766246');
});

